#ifndef SERVERSETTING_H
#define SERVERSETTING_H

#include <QDialog>
#include "EditorWidgets/baseeditor.h"

namespace Ui {
class ServerSetting;
}

class ServerSetting : public BaseEditor
{
    Q_OBJECT

public:
    explicit ServerSetting(QWidget *parent = 0);
    ~ServerSetting();
//    const static QString IP_SETTING;
//    const static QString PORT_SETTING;
//    inline QString getIp() const {return mIp;}
//    inline int getPort( )const {return mPort;}
    static void ServerInfo(QString* ip,int* port);

private:
    Ui::ServerSetting *ui;
    QString mIp;
    int mPort;
    
    // QDialog interface
signals:
    void ServerInfoChanged(const QString&);
public slots:

private slots:
    void on_btn_cancel_clicked();
    void on_btn_ok_clicked();
};

#endif // SERVERSETTING_H
